package com.gene.controller.user;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


/**
 * Created by lenovo on 2018/1/16.
 */
@Controller
public class index {
    @RequestMapping(value = "/index", produces = "application/json;charset=UTF-8", method = RequestMethod.GET)
    @ResponseBody
    public ModelAndView index(HttpServletRequest req, HttpServletResponse resp) throws IOException {
        ModelAndView mv = new ModelAndView();
        mv.setViewName("/index");
        return mv;
    }
}
